import requests
import json

url='https://api.inews.qq.com/newsqa/v1/query/inner/publish/modules/list?modules=chinaDayList,chinaDayAddList,nowConfirmStatis,provinceCompare'

params={'modules':'chinaDayList,chinaDayAddList,nowConfirmStatis,provinceCompare'}

headers = {'User-Agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.77 Safari/537.36 Edg/91.0.864.41'}

r = requests.get(url,params=params,headers = headers)
j = json.loads(r.text)
list1 = j['data']['chinaDayList']

print("ChinaDayList:")
print("  ")
for i in range(len(list1)):
     print('时间：'+list1[i]['y']+'.'+list1[i]['date']+"  "
           +'确诊人数：'+str(list1[i]['confirm'])+" "
           +'治愈人数：'+str(list1[i]['heal'])+"  "
           +'死亡人数：'+str(list1[i]['dead']))
     print(" ")